package com.hr.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel("用户类")
public class User {

  @ApiModelProperty("用户id")
  private Integer userId;
  @ApiModelProperty("用户名")
  private String userName;
  @ApiModelProperty("邮箱")
  private String email;
  @ApiModelProperty("密码")
  private String password;
  @ApiModelProperty("状态，0：正常，1：不可用")
  private Integer status;
  @ApiModelProperty("角色列表")
  private List<Role> roleList;

  public User() {
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public List<Role> getRoleList() {
    return roleList;
  }

  public void setRoleList(List<Role> roleList) {
    this.roleList = roleList;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", email='" + email + '\'' +
            ", password='" + password + '\'' +
            ", status=" + status +
            ", roleList=" + roleList +
            '}';
  }
}
